package org.cx.myweb.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Question entity. @author MyEclipse Persistence Tools
 */

public class Question implements java.io.Serializable {

	// Fields

	private Integer qid;
	private String title;
	private String content;
	private Integer itemid;
	private Integer subid;
	private String userid;
	private String grade;
	private Integer offerscore;
	private Integer status;
	private Date questiontime;
	private Integer clickcount;
	private Integer acceptflag;
	private Integer commenflag;
	private Set answers = new HashSet(0);

	// Constructors

	/** default constructor */
	public Question() {
	}

	/** full constructor */
	public Question(String title, String content, Integer itemid,
			Integer subid, String userid, String grade, Integer offerscore,
			Integer status, Date questiontime, Integer clickcount,
			Integer acceptflag, Integer commenflag, Set answers) {
		this.title = title;
		this.content = content;
		this.itemid = itemid;
		this.subid = subid;
		this.userid = userid;
		this.grade = grade;
		this.offerscore = offerscore;
		this.status = status;
		this.questiontime = questiontime;
		this.clickcount = clickcount;
		this.acceptflag = acceptflag;
		this.commenflag = commenflag;
		this.answers = answers;
	}

	// Property accessors

	public Integer getQid() {
		return this.qid;
	}

	public void setQid(Integer qid) {
		this.qid = qid;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getItemid() {
		return this.itemid;
	}

	public void setItemid(Integer itemid) {
		this.itemid = itemid;
	}

	public Integer getSubid() {
		return this.subid;
	}

	public void setSubid(Integer subid) {
		this.subid = subid;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getGrade() {
		return this.grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public Integer getOfferscore() {
		return this.offerscore;
	}

	public void setOfferscore(Integer offerscore) {
		this.offerscore = offerscore;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getQuestiontime() {
		return this.questiontime;
	}

	public void setQuestiontime(Date questiontime) {
		this.questiontime = questiontime;
	}

	public Integer getClickcount() {
		return this.clickcount;
	}

	public void setClickcount(Integer clickcount) {
		this.clickcount = clickcount;
	}

	public Integer getAcceptflag() {
		return this.acceptflag;
	}

	public void setAcceptflag(Integer acceptflag) {
		this.acceptflag = acceptflag;
	}

	public Integer getCommenflag() {
		return this.commenflag;
	}

	public void setCommenflag(Integer commenflag) {
		this.commenflag = commenflag;
	}

	public Set getAnswers() {
		return this.answers;
	}

	public void setAnswers(Set answers) {
		this.answers = answers;
	}

}